local help = [[
me:add_currency(id, count) --- 增加货币，其中 id 取值 (1,2,3)
me:add_partner(id) --- 增加伙伴，其中 id 取值 (101,102,103,104,105,106)
]]

local function main (userOb, msgData)
    if not msgData.input then
        return
    end

    if msgData.input == "help" then
        local result = {}
        result.output = help
        userOb:send_packet("MSGS2CDebugConsole", result)
        return
    end

    me = userOb
    local ok, res = pcall(load(msgData.input))
    me = nil
    if not ok then
        return
    end

    local result = {}
    result.output = tostring(res)
    userOb:send_packet("MSGS2CDebugConsole", result)

    ---! 发送道具信息
    ITEM_D:send_item_info(userOb)
    ---! 发送装备信息
    EQUIP_D:send_equip_info(userOb)
    ---! 发送伙伴信息
    PARTNER_D:send_partner_info(userOb)
end

COMMAND_D:register_command("MSGC2SDebugConsole", GameCmdType.TEST, main)
